<template>
  <div class="app-container">
    <template>
      <el-alert
        title="欢迎页面"
        type="success"
        show-icon
        description="尊敬的管理员你好，欢迎登录房屋租赁后台管理系统~"
      />
    </template>

    <el-row :gutter="20">
      <el-col :span="12" :xs="24">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>团队信息</span>
          </div>
          <div class="text item">
            <div class="team-item">
              <p><i class="el-icon-position" /> 团队名称：喜洋洋团队</p>
            </div>
            <div class="team-item">
              <p>
                <i class="el-icon-user" />
                团队成员：
                <el-tag type="info" size="mini">许文伟</el-tag>
				<el-tag size="mini">周江云</el-tag>
                <el-tag type="info" size="mini">祝康龙</el-tag>
                <el-tag type="warning" size="mini">刘胜</el-tag>
                <el-tag type="danger" size="mini">刘伟</el-tag>
                <el-tag type="success" size="mini">聂景涛</el-tag>
              </p>
            </div>
            <div class="team-item">
              <p><i class="el-icon-smoking" /> 项目名称：房屋租赁后台管理系统</p>
            </div>
            <div class="team-item">
              <p><i class="el-icon-time" /> 开发周期：<el-tag size="mini">35个工作日</el-tag></p>
            </div>
            <div class="team-item">
              <p>
                <i class="el-icon-timer" />
                项目完成进度
                <el-progress :percentage="70" />
              </p>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :span="8" :xs="24">
        <blockquote class="text-warning">
          <div class="info-item">
            <h3>前端技术</h3>
            <div>Vue</div>
            <div>Vuex</div>
            <div>VueRouter</div>
            <div>Axios</div>
            <div>Echart</div>
            <div>Element UI</div>
            <div>...</div>
          </div>
          <div class="info-item">
            <h3>后端技术</h3>
            <div>SpringBoot</div>
            <div>SpringSecurity</div>
            <div>MybatisPlus</div>
            <div>Jwt</div>
            <div>Axios</div>
            <div>Redis</div>
            <div>...</div>
          </div>
        </blockquote>
      </el-col>
    </el-row>
    <!-- 分割线 -->
    <el-divider />
    <!-- 面板 -->
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>版本更新</span>
      </div>
      <div class="text item">
        <!-- 手风琴 -->
        <el-collapse v-model="activeName" accordion>
          <el-collapse-item title="v1.0" name="1">
            <div>与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；</div>
            <div>在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。</div>
          </el-collapse-item>
          <el-collapse-item title="v1.2" name="2">
            <div>控制反馈：通过界面样式和交互动效让用户可以清晰的感知自己的操作；</div>
            <div>页面反馈：操作后，通过页面元素的变化清晰地展现当前状态。</div>
          </el-collapse-item>
          <el-collapse-item title="v1.5" name="3">
            <div>简化流程：设计简洁直观的操作流程；</div>
            <div>清晰明确：语言表达清晰且表意明确，让用户快速理解进而作出决策；</div>
            <div>帮助用户识别：界面简单直白，让用户快速识别而非回忆，减少用户记忆负担。</div>
          </el-collapse-item>
          <el-collapse-item title="v2.0" name="4">
            <div>用户决策：根据场景可给予用户操作建议或安全提示，但不能代替用户进行决策；</div>
            <div>结果可控：用户可以自由的进行操作，包括撤销、回退和终止当前操作等。</div>
          </el-collapse-item>
        </el-collapse>
      </div>
    </el-card>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  data() {
    return {
      timer: '',
      activeName: 1
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  created() {
  },
  methods: {
    // 获取所剩的时间百分比
  }
}
</script>

<style lang="scss" scoped>
	.el-card{
		margin-top: 20px;
	}
	.team-item{

		.team-name{
			color: #ccc;
			font-size: 14px;
			margin-bottom: 10px;
		}
	}
	.team-item{
		margin-top: 10px;
		font-size: 14px;
		.el-tag{
			margin-right: 4px;
		}
	}
	.text-warning{
		border-left: 5px solid #eee;
		text-indent: 1em;
		color: #606266;
		h3{
			color: grey;
		}
		div{
			margin: 5px 0;
		}
		.info-item{
			display: inline-block;
		}
	}

</style>
